// +----------------------------------------------------------------------
// | ILDP-three-dimensional系统 [ 致力于通过产品和服务，帮助商家高效化开拓市场 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.lyltop.top All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 这不是一个自由软件，不允许对程序代码以任何形式任何目的的再发行
// +----------------------------------------------------------------------
// | Author: 彦麟工作室 <yanlinstudio@126.com>
// +----------------------------------------------------------------------
// | Name: 刘彦麟
// +----------------------------------------------------------------------
// | FILE_NAME: gridHelper.ts
// +----------------------------------------------------------------------
// | Date: 2022/6/14 10:18
// +----------------------------------------------------------------------
import * as THREE from "three";
import {Scene} from "three";

/**
 * 创建辅助网格
 *
 * */
export const CreateGridHelper = (scene: Scene) => {
    const helper = new THREE.GridHelper(1000, 50);
    helper.name = "gridHelperSc";
    helper.position.y = 0;
    // @ts-ignore
    helper.material.opacity = 0.25;
    // @ts-ignore
    helper.material.transparent = true;
    scene.add(helper);
}

